@container-height: 20vh;

.picture-viewer-page {
  .full-view();
  position: relative;
  overflow: auto;
  .window-wrap {
    position: relative;
    display: flex;
    height: calc(100% - @container-height);
    box-sizing: border-box;
    overflow: auto;
    .left-part {
      flex: 2;
      padding: 20px;
    }
    .right-part {
      .bgc(#f4f5f5);
      .bg-default(contain);
      flex: 1;
      padding: 20px 20px 20px 40px;
      border-top: 1px solid #ddd;
      border-left: 1px solid #ddd;
      box-sizing: border-box;
      box-shadow: 0 0 20px #d1dae2;
      background-image: url(../../assets/images/leaf_bg.png);
      background-size: 60%;
      background-position: bottom right;
      .title {
        font-size: 20px;
        margin-bottom: 20px;
      }
      .desc {
        letter-spacing: 1px;
        text-indent: 28px;
      }
      .time {
        .clear-f();
        float: right;
        margin: 4px 0;
      }
    }
  }
  .ant-alert-info {
    width: 50vw;
    margin: 0 0 20px;
  }
  .picture-viewer {
    .bgc(#34414c);
    display: block;
    padding: 20px 0;
    border: 1px solid #b5bac1;
  }
  .swiper-container {
    .bgc(rgba(207, 213, 220, 0.8));
    width: 100%;
    height: @container-height;
    padding: 20px 0;
    border-top: 1px solid #adb4bb;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
    &::before, &::after {
      content: '';
      position: absolute;
      bottom: 0;
      z-index: 2;
      display: block;
      width: 60px;
      height: 100%;
    }
    &::before {
      left: 0;
      background: linear-gradient(to right, rgba(255, 255, 255, 0.4) , rgba(255, 255, 255, 0));
    }
    &::after {
      right: 0;
      background: linear-gradient(to left, rgba(255, 255, 255, 0.4) , rgba(255, 255, 255, 0));
    }
  }
  .swiper-slide {
    .bgc(#34414c);
    .flex-center();
    position: relative;
    &.swiper-slide-active {
      &::after {
        display: none;
      }
    }
    &::after {
      .position-full();
      content: '';
      display: block;
      background-color: rgba(0, 0, 0, 0.65);
    }
    &:hover {
      cursor: pointer;
    }
    img {
      width: auto;
      height: auto;
      max-width: 100%;
      max-height: 100%;
    }
  }
  .swiper-button-next, .swiper-button-prev {
    .bgc(white);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #97abc1;
    border-radius: 50%;
    color: #97abc1;
    background-image: none;
    &:hover {
      cursor: pointer;
    }
    &:active {
      box-shadow: inset 0 0 10px rgba(90, 111, 160, 0.6);
    }
  }
  .swiper-button-disabled {}
}
